import request from '@/utils/request'

export function listContent(size, current, columnId) {
  return request.get('/cms/articlesInfo/page', { params: {
    size: size,
    current: current,
    columnId: columnId
  }})
}

export function listContentId(id) {
  return request.get(`/cms/articlesInfo/${id}`)
}

export function addContent(addData) {
  return request.post('/cms/articlesInfo', { ...addData })
}

export function editContent(editData) {
  return request.put('/cms/articlesInfo', { ...editData })
}

export function delContent(id) {
  return request.delete(`/cms/articlesInfo/${id}`)
}
